.add-product-modal {
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 50px;
    background: linear-gradient(to right, #2e8cff, #36c5fe);
    color: white;
    font-size: 16px;
    border-radius: 6px 6px 0 0;
    
    .close-icon {
      cursor: pointer;
      font-size: 18px;
      color: white;
    }
  }
  
  .product-tabs {
    padding: 0 20px;
    
    .ant-tabs-nav {
      margin-bottom: 0;
    }
    
    .ant-tabs-tab {
      padding: 12px 0;
      font-size: 14px;
      
      &.ant-tabs-tab-active .ant-tabs-tab-btn {
        color: #1890ff;
        font-weight: 500;
      }
    }
    
    .ant-tabs-ink-bar {
      background-color: #1890ff;
      height: 2px;
    }
  }

  .form-content {
    padding: 0 20px 20px;
    
    .form-tip-text {
      margin: 10px 0;
      color: #666;
      font-size: 13px;
      
      .red-star {
        color: #ff4d4f;
      }
    }
    
    .form-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin-bottom: 12px;
      
      .form-item {
        min-width: 0; // 解决内容溢出的问题
        
        // 让条形码占据两列宽度
        &:first-child {
          grid-column: span 2;
        }
      }
    }
  }

  .form-row {
    margin-bottom: 12px;

    .form-item {
      display: flex;
      flex-direction: column;

      &.required label::before {
        content: '';
      }

      label {
        margin-bottom: 6px;
        color: #333;
        font-size: 13px;
        
        .red-star {
          color: #ff4d4f;
          margin-right: 4px;
        }
      }
    }
  }
  
  .form-item {
    display: flex;
    flex-direction: column;
    
    label {
      margin-bottom: 6px;
      color: #333;
      font-size: 13px;
      
      .red-star {
        color: #ff4d4f;
        margin-right: 4px;
      }
    }
    
    .with-button {
      display: flex;
      
      .ant-input {
        flex: 1;
      }
      
      .check-barcode-btn {
        margin-left: 8px;
        background-color: #1890ff;
        border-color: #1890ff;
      }
      
      .new-category-btn {
        padding: 0 8px;
        color: #1890ff;
        font-size: 14px;
      }
    }
    
    .ant-input, .ant-select, .ant-input-number {
      height: 32px;
    }
  }

  .form-bottom-tip {
    margin: 12px 0;
    padding: 0;
    color: #666;
    font-size: 12px;
    line-height: 1.5;
  }
  
  .form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    gap: 10px;
    
    .save-btn {
      background-color: #1890ff;
      border-color: #1890ff;
    }
    
    .cancel-btn {
      background-color: white;
      border-color: #d9d9d9;
    }
  }

  .image-content {
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
    color: #999;
  }

  // 添加图文详情样式
  .image-detail-content {
    padding: 20px;
    
    .retail-name-row {
      margin-bottom: 20px;
      
      label {
        display: block;
        margin-bottom: 8px;
        color: #333;
        font-size: 14px;
      }
      
      .ant-input {
        width: 100%;
      }
    }
    
    .image-section {
      margin-bottom: 20px;
      
      .section-title {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
        
        span {
          color: #333;
          font-size: 14px;
        }
        
        .section-tip {
          color: #666;
          font-size: 12px;
        }
      }
      
      .image-uploader {
        .ant-upload.ant-upload-select-picture-card {
          width: 180px;
          height: 180px;
          margin-right: 8px;
          margin-bottom: 8px;
          border: 1px dashed #d9d9d9;
          border-radius: 8px;
          background-color: #fafafa;
          
          &:hover {
            border-color: #1890ff;
          }
        }
        
        .upload-area {
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          height: 100%;
          
          .upload-icon {
            font-size: 32px;
            color: #999;
            margin-bottom: 8px;
          }
          
          .upload-text {
            color: #666;
            margin: 0;
          }
        }
      }
    }
    
    .form-bottom-tip {
      margin: 12px 0;
      padding: 0;
      color: #666;
      font-size: 12px;
      line-height: 1.5;
    }
    
    .form-actions {
      display: flex;
      justify-content: flex-end;
      margin-top: 16px;
      gap: 10px;
      
      .save-btn {
        background-color: #1890ff;
        border-color: #1890ff;
      }
      
      .cancel-btn {
        background-color: white;
        border-color: #d9d9d9;
      }
    }
  }
}

// 覆盖Modal样式
.ant-modal-content {
  padding: 0;
  overflow: hidden;
  
  .ant-modal-body {
    padding: 0;
  }
}

// 减小输入框高度
.add-product-modal {
  .ant-input, .ant-select-selector, .ant-btn {
    height: 32px !important;
    line-height: 32px !important;
  }
  
  .ant-select-selection-item {
    line-height: 30px !important;
  }
  
  .ant-input-affix-wrapper {
    padding-top: 0;
    padding-bottom: 0;
  }
} 